﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Domain.Implementation
{
    class CancelOfferServiceFactory
    {
        public static ICancelOffers GetCancelOfferService(IOffer offer)
        {
            ICancelOffers cancelOffers = null;
            if (offer is Buy)
                cancelOffers = new CancelBuyOfferService();
            else if (offer is Sell)
                cancelOffers = new CancelSellOfferService();
            return cancelOffers;
        }
    }
}
